import 'package:flutter/material.dart';
import '../../Constants/constants.dart' show AppColors;
import '../../common_layouts/split_layout.dart';
import '../../common_layouts/full_fun_iconbtn.dart';
import '../../Constants/constants.dart' show Constants;


class MePage extends StatelessWidget {
  FlatButton _layoutUserBase() {
    return FlatButton(
        padding: EdgeInsets.only(
            top: (Constants.Hh) * 62,
            bottom: (Constants.Hh) * 104,
            left: (Constants.Wh) * 64),
        color: Color(AppColors.WhiteColor),
        onPressed: () {},
        child: Container(
            child: Row(
          children: <Widget>[
            SizedBox(
              width: 0.0,
            ),
            ClipRRect(child:
            Image.asset('assets/images/ima_user.jpeg',width: (Constants.Wh) * 172, height: (Constants.Wh) * 172),
            borderRadius: BorderRadius.circular( (Constants.Wh) * 16),),
            Expanded(
                child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: <Widget>[
                Container(
                    padding: EdgeInsets.only(left: (Constants.Wh) * 44),
                    child: Text(
                      '大射手座',
                      style: TextStyle(fontSize: (Constants.Wh) * 60.0),
                    )),
                Row(
                  crossAxisAlignment: CrossAxisAlignment.center,
                  children: <Widget>[
                    Container(
                        padding: EdgeInsets.only(left: (Constants.Wh) * 44),
                        child: Text(
                          '微信号：66666666',
                          style: TextStyle(fontSize: (Constants.Wh) * 42),
                        )),
                    //Container(
                    //   child: Text(
                    //  '66666666',
                    //  style: TextStyle(fontSize: (Constants.Wh)*30,),
                    //  )),
                  ],
                )
              ],
            ))
          ],
        )));
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      //backgroundColor: Colors.blue,
      backgroundColor: Color(AppColors.MainBgColor),
      body: Column(
        children: <Widget>[
          _layoutUserBase(),
          SplitLayout(),
          //_layoutUserBase(),
          FullFunIconBtn(
            iconPath: 'assets/images/ima_pay.png',
            title: '支付',
            hasPic: true,
            pressed: () {},
          ),
          SplitLayout(),
          FullFunIconBtn(
            iconPath: 'assets/images/ima_collect.png',
            title: '收藏',
            hasDivider: true,
            pressed: () {},
          ),
          FullFunIconBtn(
            iconPath: 'assets/images/ima_album.png',
            title: '相册',
            hasDivider: true,
            pressed: () {},
          ),
          FullFunIconBtn(
            iconPath: 'assets/images/ima_cardwallet.png',
            title: '卡包',
            hasDivider: true,
            pressed: () {},
          ),
          FullFunIconBtn(
            iconPath: 'assets/images/ima_emotions.png',
            title: '表情',
            hasDivider: false,
            pressed: () {},
          ),
          SplitLayout(),
          FullFunIconBtn(
            iconPath: 'assets/images/ima_settings.png',
            title: '设置',
            hasDivider: false,
            pressed: () {
              Navigator.of(context).pushNamed('/settingPage');
            },
          ),
          Divider(height: 1, color: Color(AppColors.SpliteLineColor))
          //Divider(height:1,color:Colors.red)
        ],
      ),
    );
  }
}
